package com.sevennotes.classtable.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
import java.util.*

/**
 * 剩余课时量变化记录，适用于增加剩余课时，减少剩余课时等
 */
@Entity(tableName = "class_amount_record")
data class ClassAmountRecord(
    @PrimaryKey(autoGenerate = true) var id: Int? = null,
    @ColumnInfo(name = "student_id") var studentId: Int = 0,
    @ColumnInfo(name = "amount_change") var amountChange: Int = 0,
    @ColumnInfo(name = "note") var note: String = "",
    @ColumnInfo(name = "change_date") var date: Date = Date()
) : Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}
